﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    public class LotterySearch
    {
        public string NickName { get; set; }

        public string GenerateWhere()
        {
            var where = string.Empty;
            if (!string.IsNullOrWhiteSpace(NickName))
            {
                where += string.Format(" and nickname like '%{0}%'", NickName);
            }
            return where;
        }
    }
}
